﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Models
{
    /// <summary>
    /// 管理员实体类
    /// </summary>
    [Serializable]
    public class SysAdmin
    {
        public SysAdmin()
        {
            this.FirstMenu = new List<string>();
            this.SecondMenu = new List<string>();
            this.RightCode = new List<string>();
        }


        public int AdminId { get; set; }
        public string AdminName { get; set; }
        public string LoginId { get; set; }
        public string LoginPwd { get; set; }
        public int RoleId { get; set; }
        public int StatusId { get; set; }




        //扩展属性

        //一级菜单(保存的是中文)
        public List<string> FirstMenu { get; set; }

        //二级菜单
        public List<string> SecondMenu { get; set; }
        //二级菜单下的权限列表(保存的是权限编码)
        public List<string> RightCode { get; set; }

        public string RoleName { get; set; }
    }
}
